package com.mall.b2c.domain.order;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mall.common.domain.BaseEntity;

/**
 * 发货项
 * @author lzx
 *
 */
@Entity
@Table(name = "b2c_shipping_item")
public class ShippingItemDomain extends BaseEntity {

	private static final long serialVersionUID = -7883076594431520033L;

	private String productSn; // 商品编号
	private String productName;// 商品名称
	private String batch; // 批次号
	private Integer quantity; // 数量
	private ShippingDomain shipping; // 发货单
	private OrderItemDomain orderItem;

	public String getProductSn() {
		return productSn;
	}

	public void setProductSn(String productSn) {
		this.productSn = productSn;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public ShippingDomain getShipping() {
		return shipping;
	}

	public void setShipping(ShippingDomain shipping) {
		this.shipping = shipping;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public OrderItemDomain getOrderItem() {
		return orderItem;
	}

	public void setOrderItem(OrderItemDomain orderItem) {
		this.orderItem = orderItem;
	}

}
